Need to show the image after adding it to the GtkImageMenuItem. This used
authorMichael Natterer <mitch@gimp.org>
Sat, 4 Aug 2001 12:48:16 +0000 (12:48 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Sat, 4 Aug 2001 12:48:16 +0000 (12:48 +0000)
2001-08-04  Michael Natterer  <mitch@gimp.org>

* gtk/gtkitemfactory.c (gtk_item_factory_create_item):
Need to show the image after adding it to the GtkImageMenuItem.
This used to work without in testgtk because of the
gtk_widget_show_all() at the end of the function.
(Closes #54978).

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkitemfactory.c

index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index 358cabba8ac8bc2e7dd30320700143015462395b..683b84ff78f2048e17a907736f4df77a0662da39 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-04  Michael Natterer  <mitch@gimp.org>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
+       Need to show the image after adding it to the GtkImageMenuItem.
+       This used to work without in testgtk because of the
+       gtk_widget_show_all() at the end of the function.
+       (Closes #54978).
+
 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
index dcaa3a80f2a873291ca98dd14ddd3c99c767e286..3aa134183e977364d15e53ea38fbaaa7009b58b0 100644 (file)
@@ -1234,7 +1234,11 @@ gtk_item_factory_create_item (GtkItemFactory          *ifactory,
        image = gtk_image_new_from_pixbuf (pixbuf);
 
       if (image)
-       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image);
+       {
+         gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image);
+
+         gtk_widget_show (image);
+       }
 
       if (pixbuf)
        g_object_unref (G_OBJECT (pixbuf));
@@ -1244,7 +1248,9 @@ gtk_item_factory_create_item (GtkItemFactory           *ifactory,
       image = gtk_image_new_from_stock (entry->extra_data, GTK_ICON_SIZE_MENU);
 
       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (widget), image);
-      
+
+      gtk_widget_show (image);
+
       if (gtk_stock_lookup (entry->extra_data, &stock_item))
        {
          if (!accelerator)